from py.thrift.generated import ttypes


class PersonServiceImpl:
    def getPersonByUserName(self,username):
        print("Got Client Param" + username)

        person=ttypes.Person()
        person.username=username
        person.age=20
        person.married=False

        return person

    def savePerson(self,person):
        print("Got client param: ")

        print(person.username)
        print(person.age)
        print(person.married)

